#!/bin/bash

bakserv='192.168.5.10'
user='root'
passwd='szwgmf.com!!**##'
xinqi_num=`date +%w`


cd bin/svn


tar -zcvf svn.tgz_$xinqi_num  /var/svn/wgmf

lftp -p 2233 -u ${user},${passwd} sftp://${bakserv} << EOF
cd /data/backup/svn
put svn.tgz_$xinqi_num
bye
EOF

rm -rf svn.tgz_$xinqi_num
